package com.zaydanwu.cla.service.Impl;

import com.zaydanwu.cla.dao.ReplyMapper;
import com.zaydanwu.cla.model.Reply;
import com.zaydanwu.cla.service.ReplyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @BelongsProject: cla
 * @BelongsPackage: com.zaydanwu.cla.service.Impl
 * @Author: zaydanwu
 * @CreateTime: 2019-01-05 16:53
 * @Description:
 */
@Service
public class ReplyServiceImpl implements ReplyService {

    @Resource
    private ReplyMapper replyMapper;

    @Override
    public int saveReply(Reply record) {
        return replyMapper.insert(record);
    }

    @Override
    public int deleteByCommentId(Integer commentId) {
        return replyMapper.deleteByCommentId(commentId);
    }
}
